
from __future__ import unicode_literals
from django.db import models
from optitrans.domain.ville import Ville

class Gare(models.Model):
    id_gare = models.IntegerField(primary_key=True)
    nom = models.CharField(max_length=50L)
    id_ville = models.ForeignKey(Ville, db_column='id_ville')
    latitude = models.FloatField()
    longitude = models.FloatField()
    class Meta:
        db_table = 'gare'

